package com.leyou.search.entity;

import com.leyou.starter.elastic.annotaions.Id;
import com.leyou.starter.elastic.annotaions.Index;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
@Index("goods")
public class Goods {
   @Id
   private  Long id;
   private String title;//商品标题
   private String image; //图片地址
   private List<String> suggestion;//自动补全的候选字段
   private Long categoryId;//商品分类id和名字
    private Long brandId;//品牌id
    private List<Map<String,Object>> specs;//规格参数
    private Set<Long> prices;//sku的价格集合
    private Long sold;//sku的总销量和
    private Date updateTime;//商品更新时间
}
